package IA.GA.editorial;
import org.jgap.Configuration;
import org.jgap.InvalidConfigurationException;
import org.jgap.impl.CrossoverOperator;
import org.jgap.impl.MutationOperator;
import org.jgap.impl.TournamentSelector;

public class Config1 extends AbstractConfigFactory{
	
	public void setParameters(Configuration conf) throws InvalidConfigurationException{		
		CrossoverOperator operator = new CrossoverOperator(conf,2);		
		conf.addGeneticOperator(operator);
		
		conf.addGeneticOperator(new MutationOperator(conf, 1000));
		
		TournamentSelector selector = new TournamentSelector(conf, 4, 1);		
		conf.addNaturalSelector(selector,true);
	}
}
